package com.gdwhomework.chapter07.homework005;

public class Test {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("刘精", 54, "主刀医生", '男', 20000);
        Doctor doctor2 = new Doctor("刘精", 54, "主刀医生", '男', 20000);
        System.out.println(doctor.equals(doctor2));
    }
}
